export default class CombatBase{
    constructor(){
        this.priority=0;
    }

    isHigherPriority(base){
        if(!base)return true;
        return this.priority>base.priority;
    }

    isHigherEqualPriority(base){
        if(!base)return true;
        return this.priority>=base.priority;
    }

    isLowerPriority(base){
        if(!base)return false;
        return this.priority<base.priority;
    }

    isLowerEqualPriority(base){
         if(!base)return false;
        return this.priority<=base.priority;
    }

    isEqualPriority(base){
        if(!base)return false;
        return this.priority==base.priority;
    }
    
}